/*
 * CGameOverScene.h
 *
 *  Created on: Apr 4, 2014
 *      Author: dzung
 */

#ifndef CGAMEOVERSCENE_H_
#define CGAMEOVERSCENE_H_
#include "cocos2d.h"
USING_NS_CC;

class CGameOverLayer: public CCLayerColor {

private:
	void RunGameScreen();
	CCLabelTTF *lbScore, *lbBestScore;
	CCSprite *btnShare, *btnPlay;
public:
	virtual bool init();
	static cocos2d::CCScene* scene();
	CREATE_FUNC (CGameOverLayer);
	void updateScore();
	void updateBestScore();
	
	virtual void keyBackClicked(void);
	void programExit(CCObject* pSender);
	void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
	void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);
	void onQuitClicked();

	void onPlayClicked();
	void onShareClicked();
	void onSaveScreenshot();
};

#endif /* CGAMEOVERSCENE_H_ */
